﻿/// Write a program that prints to the console which day of the week is today. Use System.DateTime.

using System;
using System.Text.RegularExpressions;   

namespace c_sh_II_lek_4_classes
{
    class zad6
    {
        static void Main()
        {
            string[] input = Console.ReadLine().Split(' ');

            int sum = 0;

            for (int i = 0; i < input.Length; i++)
            {
                if (Regex.IsMatch(input[i], @"^\d+$" ))
                {
                    int num = int.Parse(input[i]);
                    sum += num;
                }
            }

            Console.WriteLine(sum);
        }
    }
}
